package com.qin.springcloud;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Leisure
 * create 2022 2022/6/22 15:57
 **/
@RestController
public class ConfigController {

    @Value("${content}")//content是git文件中的key
    String content;

    @GetMapping("/config")
    public String config() {
        return "content: " + content;
    }
}
